812e6362af6dd334c42eefe7e276c4e2140e4f44,core/src/io/piotrjastrzebski/playground/simple/MeshShadowTest.java,MeshShadowTest,MeshShadowTest,#GameReset#,22
Before Change
for (int i = 0; i < 20; i++) {
casters.add(new ShadowCaster(MathUtils.random(-17, 15), MathUtils.random(-10, 10), MathUtils.random(1, 3), MathUtils.random(1, 3)));
casters.add(new ShadowCaster(MathUtils.random(-17, 15), MathUtils.random(-10, 10), MathUtils.random(.5f, 1.5f)));
}
}
After Change
super(game);
for (int i = 0; i < 20; i++) {
casters.add(new ShadowCaster(MathUtils.random(-17f, 15), MathUtils.random(-10f, 10), MathUtils.random(1, 3), MathUtils.random(1, 3)));
casters.add(new ShadowCaster(MathUtils.random(-17f, 15), MathUtils.random(-10f, 10), MathUtils.random(.5f, 1.5f)));
float x = MathUtils.random(-17f, 15);
float y = MathUtils.random(-10f, 10);
float angle = MathUtils.random(360);
Vector2[] vector2s = new Vector2[]{
v2(x + -1, y + 0).rotate(angle),
v2(x + 1, y + 0).rotate(angle),
v2(x + 0, y + .5f).rotate(angle)
};
casters.add(new ShadowCaster(x, y, vector2s));
}